<?php

class Core_Plugin_Menu
{
	static public function coreAdminUser($item)
	{
		$item['label'] = Agis::getViewer() -> getTitle();
		return $item;
	}

	static public function coreAdminLogout($item)
	{
		return Agis::getViewer() -> getId() ? $item : null;
	}

	static public function coreMainAdmin($item)
	{
		return Agis::getViewer() -> getRoleId() < 3 ? $item : null;
	}

	static public function coreMainLogin($item)
	{
		return Agis::getViewer() -> getId() ? null : $item;
	}

	static public function coreMainLogout($item)
	{
		return Agis::getViewer() -> getId() ? $item : null;
	}

}
